package es.udc.pfc.davidparedes.model.task;

import java.util.Calendar;
import java.util.List;

import es.udc.pfc.davidparedes.model.dao.GenericDao;
import es.udc.pfc.davidparedes.model.storeservice.VendorAndMillisDTO;
import es.udc.pfc.davidparedes.model.userservice.TypeAndMillisDTO;

public interface TaskDao extends GenericDao<Task, Long> {
	
	public List<Task> findTasksByDate(Long userProfileId, Calendar startDate, Calendar endDate);

	public List<Task> findUniverseTasksByDate(Long universeId, Calendar startDate, Calendar endDate);
	
	public List<Task> findUniverseTasksAtMoment(Long universeId, Calendar moment);
	
	public List<TypeAndMillisDTO> getVendorTasksDuration(Long userProfileId, Long universeId, Calendar startDate, Calendar endDate);

	public List<VendorAndMillisDTO> getUniverseTasksDuration(Long universeId, Calendar startDate, Calendar endDate);

}